//---------------------------------------------------------------------------
#ifndef ColoredPositionClassH
#define ColoredPositionClassH
#include <vector.h>
#include <vcl.h>
#include <math.h>
#include "ObjectClass.h"
//---------------------------------------------------------------------------
typedef struct {
	int color;
	int markcount;
} mark;
//---------------------------------------------------------------------------
class CColoredPosition : public CObject {
private:
	static int count;
	static int namecount;
	static int radius;
	int markcount;
	vector <mark> marks;
public:
	CColoredPosition(TCanvas* canvas, int x, int y);
	void show();
	void hide();
	bool isSelect(int xm, int ym);
	void setRadius(int radius);
	void addColor(int color);
	void delColor(int color);
	void setMarkCount(int color, int markcount);
	vector <mark> getMarkCount();
	UnicodeString save();
	~CColoredPosition();
};
int CColoredPosition::count = 0;
int CColoredPosition::namecount = 0;
int CColoredPosition::radius = 14;
//---------------------------------------------------------------------------
#endif
